package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.Movies2Mapper;
import com.ruoyi.system.domain.Movies2;
import com.ruoyi.system.service.IMovies2Service;

/**
 * 电影信息Service业务层处理
 * 
 * @author yhd-csq
 * @date 2024-06-05
 */
@Service
public class Movies2ServiceImpl implements IMovies2Service 
{
    @Autowired
    private Movies2Mapper movies2Mapper;

    /**
     * 查询电影信息
     * 
     * @param movieName 电影信息主键
     * @return 电影信息
     */
    @Override
    public Movies2 selectMovies2ByMovieName(String movieName)
    {
        return movies2Mapper.selectMovies2ByMovieName(movieName);
    }

    /**
     * 查询电影信息列表
     * 
     * @param movies2 电影信息
     * @return 电影信息
     */
    @Override
    public List<Movies2> selectMovies2List(Movies2 movies2)
    {
        return movies2Mapper.selectMovies2List(movies2);
    }

    /**
     * 新增电影信息
     * 
     * @param movies2 电影信息
     * @return 结果
     */
    @Override
    public int insertMovies2(Movies2 movies2)
    {
        return movies2Mapper.insertMovies2(movies2);
    }

    /**
     * 修改电影信息
     * 
     * @param movies2 电影信息
     * @return 结果
     */
    @Override
    public int updateMovies2(Movies2 movies2)
    {
        return movies2Mapper.updateMovies2(movies2);
    }

    /**
     * 批量删除电影信息
     * 
     * @param movieNames 需要删除的电影信息主键
     * @return 结果
     */
    @Override
    public int deleteMovies2ByMovieNames(String[] movieNames)
    {
        return movies2Mapper.deleteMovies2ByMovieNames(movieNames);
    }

    /**
     * 删除电影信息信息
     * 
     * @param movieName 电影信息主键
     * @return 结果
     */
    @Override
    public int deleteMovies2ByMovieName(String movieName)
    {
        return movies2Mapper.deleteMovies2ByMovieName(movieName);
    }
}
